﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.Database;
using Business.Entities;

namespace Business.Logic
{
    public class ComisionLogic
    {

        private ComisionAdapter ComisionData;

        public ComisionLogic()
        {
            ComisionData = new ComisionAdapter();
        }

        public List<Comision> GetAll() //Correcto
        {
            try
            {
                return ComisionData.GetAll();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public Comision GetOne(int id) //Correcto
        {
            try
            {
                return ComisionData.GetOne(id);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public void Delete(Comision com) //Correcto
        {
            try
            {
                ComisionData.Delete(com);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public void Save(Comision com) //Correcto
        {
            try
            {
                ComisionData.Save(com);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    
    }
}
